package com.gong.DesignPattern.VisitorPattern;

/**
 * @author GongChang
 * @version 1.0
 * @date 2021/7/8 0008 8:59
 */
public abstract class Hardware {

    String commend;

    public Hardware(String commend) {
        this.commend = commend;
    }

    public void run(){
        System.out.println(commend);
    }

    public abstract void accept(Visitor visitor);
}
